import '../assets/icon/iconfont.css'
import '../styles/icon.css'

function icon() {
  const container = document.createElement('div')
  container.className = 'icon-container'

  const iconList = [
    'icon-add',
    'icon-minus',
    'icon-close_circle',
    'icon-selected',
  ]
  iconList.forEach(icon => {
    const iconDom = document.createElement('i')
    iconDom.className = `iconfont ${icon}`
    container.appendChild(iconDom)
  })

  return container
}

document.body.appendChild(icon())

console.log('icon')
